package me.fangx.zhihu.modle.bean;

import java.io.Serializable;

/**
 * 作者： Owen
 * 时间： 2016/6/28 15:59
 * 类说明：
 */
public class CookBean implements Serializable {
    private int id;
    private int pictureId;
    private int type;
    private int isCollect;
    private String name;
    private String material;
    private String practice;

    public CookBean(){

    }

    /**
     * @param id
     * @param pictureId
     * @param type
     * @param isCollect
     * @param name
     * @param material
     * @param practice
     */
    public CookBean(int id, int pictureId, int type, int isCollect, String name, String material, String practice) {
        this.id = id;
        this.pictureId = pictureId;
        this.type = type;
        this.isCollect = isCollect;
        this.name = name;
        this.material = material;
        this.practice = practice;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPictureId() {
        return pictureId;
    }

    public void setPictureId(int pictureId) {
        this.pictureId = pictureId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getIsCollect() {
        return isCollect;
    }

    public void setIsCollect(int isCollect) {
        this.isCollect = isCollect;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMaterial() {
        return material;
    }

    public void setMaterial(String material) {
        this.material = material;
    }

    public String getPractice() {
        return practice;
    }

    public void setPractice(String practice) {
        this.practice = practice;
    }

    @Override
    public boolean equals(Object o) {
        if(o instanceof CookBean){
            if(getId()==((CookBean) o).getId()){
                return true;
            }
        }
        return false;
    }

    @Override
    public int hashCode() {
        return getId();
    }
}
